package com.devplatform.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.devplatform.pojo.CommentLike;
import org.apache.ibatis.annotations.Param;

/**
 * @author Jnks03
 * @description 针对表【comment_like(评论点赞表)】的数据库操作Mapper
 * @createDate 2025-10-09 18:03:52
 * @Entity com.devplatform.pojo.CommentLike
 */
public interface CommentLikeMapper extends BaseMapper<CommentLike> {
    // 增加评论点赞数
    int incrementLikeCount(@Param("commentId") Long commentId);

    // 减少评论点赞数（避免负数）
    int decrementLikeCount(@Param("commentId") Long commentId);
}




